package com.jqb.jnid.filesys;

import javax.naming.NamingException;
import javax.naming.Referenceable;
import javax.naming.Reference;
import javax.naming.StringRefAddr;


public class Baidu implements Referenceable {
	private String ip;
	private String admin;
	
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAdmin() {
		return admin;
	}

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	@Override
	public Reference getReference() throws NamingException {

		Reference ref = new Reference(Baidu.class.getName(),BindedClassFactory.class.getName(), null);
		ref.add(new StringRefAddr("ip", this.getIp()));
		ref.add(new StringRefAddr("admin", this.getAdmin()));
		return ref;
	}
}
